import type { Istore } from "../address/entity";

export class systemstorestaff {
  uid?: number | string;
  avatar = "";
  storeId?: number | string;
  staffName = "";
  phone = "";
  verifyStatus?: number | string;
  status?: number | string;
  systemStore?: Istore
  constructor(data?: systemstorestaff) {
    data && this.setProps(data);
  }

  setProps(data: systemstorestaff) {
    (Object.keys(this) as Array<keyof Isystemstorestaff>).forEach((key) => {
      // @ts-ignore
      this[key] = data[key];
    });
  }
}

export type Isystemstorestaff = Omit<systemstorestaff, "setProps">;
